<!-- 更改用户名 -->
<template>
  <div class="changeUserName">
    <h3 class="title"><span class="back" @click="back"></span>更改姓名</h3>
    <div class="change_user">
      <b>姓名</b>
      <input type="text" placeholder="请输入您的姓名" />
      <p />
      <button class="save_changeName">保存</button>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  data() {
    return {};
  },
  mounted() {
    let _this = this;
    window["dsBridge"].register("GoBack", function() {
      _this.$router.go(-1);
    });
    window["dsBridge"].register("whetherHtml", function(ret) {
      console.log("=======ret:" + ret);
      return true;
    });
  },
  computed: {},
  methods: {
    back() {
      this.$router.go(-1);
    }
  }
};
</script>
<style lang="stylus" scoped>
.change_user {
  height: calc(100vh - 2.6rem);
  background: #fff;
  margin-top: 0.2rem;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;

  b {
    width: 100%;
    color: #333;
    font-size: 0.3rem;
    margin-top: 0.1rem;
  }

  input {
    width: 100%;
    margin-top: 0.3rem;
    border: 0;
    height: 0.5rem;
    font-size: 0.3rem;
  }

  input::-webkit-input-placeholder {
    font-size: 0.35rem;
  }

  p {
    width: 100%;
    height: 0.01rem;
    background: #dbdbdb;
    margin-top: 0.15rem;
  }

  .save_changeName {
    position: absolute;
    bottom: 1rem;
    width: 300px;
    background: #428ee3;
    border: 0;
    color: white;
    padding: 0.2rem;
    border-radius: 0.08rem;
  }
}
</style>
